import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *

class MyWindow(QWidget):
    def __init__(self):
        super(MyWindow, self).__init__()
        self.setWindowTitle('selectPath')

        self.super_parameter = {
            'speed': 10,
            'pitch': 10,
            'range': 10,
            'anger': 10,
            'sadness': 10,
            'joy': 10,
            'file_path':'C://vro3'
        }

        self.select_path=QPushButton()
        self.select_path.setText('PAth')

        self.select_path.clicked.connect(self.ask_path)
        layput=QVBoxLayout()
        layput.addWidget(self.select_path)
        self.setLayout(layput)


    def ask_path(self):
        file_path=QFileDialog.getExistingDirectory()
        if file_path!='':
            self.super_parameter['file_path']=file_path
            #print(self.super_parameter['file_path'])



if __name__ == '__main__':
    app = QApplication(sys.argv)
    myshow = MyWindow()
    myshow.show()
    sys.exit(app.exec_())
